package v2

import (
	"ginweb/internal/controller"

	"github.com/gin-gonic/gin"
)

func RegisterProductRoutes(r *gin.RouterGroup) {
	productController := controller.NewProductController(nil, nil)

	r.POST("/products", productController.CreateProduct)
	r.GET("/products/:id", productController.GetProduct)
	r.PUT("/products/:id", productController.UpdateProduct)
	r.DELETE("/products/:id", productController.DeleteProduct)
}
